package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工单表
 * </p>
 *
 * @author AkiRinko
 * @since 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_task")
@ApiModel(value="TbTask对象", description="工单表")
public class TbTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工单编号")
    @TableId(value = "task_id", type = IdType.AUTO)
    private Long taskId;

    @ApiModelProperty(value = "工单编号")
    private String taskCode;

    @ApiModelProperty(value = "工单状态")
    private Integer taskStatus;

    @ApiModelProperty(value = "创建类型 0：自动 1：手动")
    private Integer createType;

    @ApiModelProperty(value = "售货机编码")
    private String innerCode;

    @ApiModelProperty(value = "执行人id")
    private Integer userId;

    @ApiModelProperty(value = "执行人名称")
    private String userName;

    @ApiModelProperty(value = "所属区域Id")
    private Long regionId;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "工单类型id")
    private Integer productTypeId;

    @ApiModelProperty(value = "计划完成时间")
    private LocalDateTime expect;

    @ApiModelProperty(value = "指派人Id")
    private Integer assignorId;

    @ApiModelProperty(value = "地址")
    private String addr;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
